package Service.StatisticalReport;

import Model.StatisticalReport.*;
import Service.StatisticalReport.StatisticalReportImpl.ReportLineResolver;

public class ReportResolverFactory {

    public static ReportResolver getResolver(ReportClass reportClass, IndividualClass iClass){
        ReportResolver resolver;
        switch (reportClass){
            case HOME:
                resolver = new ReportLineResolver(HomeDetail.class);
                break;
//            case HOME_SUMMARY:
//                resolver = new ReportLineResolver(HomeSummary.class);
//                break;
            case EVALUATE:
                resolver = new ReportLineResolver(EvaluateDetail.class);
                break;
//            case EVALUATE_SUMMARY:
//                resolver = new ReportLineResolver(EvaluateSummary.class);
//                break;
            case DEPARTMENT:
                resolver = new ReportLineResolver(DepartmentDetail.class);
                break;
//            case DEPARTMENT_SUMMARY:
//                resolver = new ReportLineResolver(DepartmentSummary.class);
//                break;
            default:
                resolver = null;
                break;
        }
        return resolver;
    }
}
